<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/admin.css" />
</head>
<body>
<div class="wrap-container">
  <form class="layui-form edit-form" method="post" action="{:url()}" style="width: 90%;padding-top: 20px;">
    <input type="hidden" name="id" value="{$info.id|default=''}" />
    
    <div class="layui-form-item">
      <label class="layui-form-label">状态：</label>
      <div class="layui-input-block">
        {volist name='sarr' id='vo'}
        <input type="radio" name="status" value="{$key}" class="chk_status" lay-filter="formstatus" title="{$vo}">
        {/volist}
      </div>
    </div>
    
    
    
    <div class="layui-form-item layui-form-text">
      <label class="layui-form-label">备注：</label>
      <div class="layui-input-block">
      <textarea class="layui-textarea body_con" name="remark" placeholder="请输入内容" lay-verify="body"></textarea>
      </div>
    </div>
    
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn layui-btn-normal ajax-post-btn" lay-submit lay-filter="formDemo">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
</div>
<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script> 
<script src="__STATIC__/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/js/common.js" type="text/javascript" charset="utf-8"></script> 
<script>
			//Demo
			layui.use(['jquery','form','layer'], function() {
				var form = layui.form();
				var $ = layui.jquery;
				var layer = layui.layer;
				form.render();
				//监听提交
				form.on('submit(formDemo)', function(data) {
					//layer.msg(JSON.stringify(data.field));
					ajax_post('edit-form',true,'iframe132','');
					return false;
				});
				
				
				form.on('radio(formstatus)', function(data){
					if(data.value == 3){
						var title = '<span style="color:#F00">请认真确认该提单是否正常，确认后，将付款给代理！</span>';
						var agbox = layer.confirm(title, {
									title:'提示信息',
									btn: ['确定','取消'] //按钮
						}, function(){
							layer.close(agbox);
						}, function(){
							layer.close(agbox);
						});
					}
				});
				
			});

		
{present name="info.id"}
$(function(){
	setValue("status", {$info.status|default=0});
});
{/present}
</script>


</body>
</html>